import request from '@/utils/request'

// 查询基金估值列表
export function listDealBfValuation(query) {
  return request({
    url: '/valuation/dealBfValuation/list',
    method: 'get',
    params: query
  })
}

// 查询基金估值详细
export function getDealBfValuation(id) {
  return request({
    url: '/valuation/dealBfValuation/' + id,
    method: 'get'
  })
}

// 保存基金估值
export function saveDealBfValuation(data) {
  return request({
    url: '/valuation/dealBfValuation/save',
    method: 'post',
    data: data
  })
}

// 删除基金估值
export function delDealBfValuation(id) {
  return request({
    url: '/valuation/dealBfValuation/' + id,
    method: 'delete'
  })
}

// 导出基金估值
export function exportDealBfValuation(query) {
  return request({
    url: '/valuation/dealBfValuation/export',
    method: 'get',
    params: query
  })
}

// 根据估值时间和dealID获取出资主体信息列表
export function getByTimeDealIdToInvestorList(dealId, time) {
  return request({
    url: '/valuation/dealBfValuation/getByTimeDealIdToInvestorList/' + dealId + '/' + time,
    method: 'get'
  })
}
